$("#signupForm").validate({
	rules: {
		firstname: {
			required: true,
			minlength: 2
		},
		email: {
			required: true,
			email: true
		},
		subject: {
			required: true
		},
		message: {
			required: true
		}
	},
	messages: {
		
		firstname: {
			required: "Please enter a name",
			minlength: "Your username must consist of at least 2 characters"
		},
		confirm_password: {
			required: "Please provide a password",
			minlength: "Your password must be at least 5 characters long",
			equalTo: "Please enter the same password as above"
		},
		email: "Please enter a valid email address"
	},
	submitHandler: function(form) {
		form.submit();
	}
});